﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<%@ Register Src="~/App_Widget/Navbar.ascx" TagName="navbar" TagPrefix="UITag" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <UITag:navbar runat="server" ID="navbar" />
    <form id="form1" runat="server">

        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="page-header">
                        <h1>用户注册 <small></small></h1>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading">注册信息</div>
                        <div class="panel-body">
                            <div class="form-group">
                                <asp:Label ID="NameLabel" runat="server" Text="姓名"></asp:Label>
                                <asp:TextBox ID="Name" runat="server" CssClass="form-control"></asp:TextBox>
                                <br />
                                <asp:Label ID="NicknameLabel" runat="server" Text="昵称"></asp:Label>
                                <asp:TextBox ID="Nickname" runat="server" CssClass="form-control"></asp:TextBox>
                                <br />
                                <asp:Label ID="EmailLabel" runat="server" Text="邮箱"></asp:Label>
                                <asp:TextBox ID="Email" runat="server" TextMode="Email" CssClass="form-control"></asp:TextBox>
                                <br />
                                <asp:Label ID="PasswordLabel" runat="server" Text="密码"></asp:Label>
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="form-control"></asp:TextBox>
                                <br />
                                <asp:Label ID="PhoneLabel" runat="server" Text="手机"></asp:Label>
                                <asp:TextBox ID="Phone" runat="server" CssClass="form-control"></asp:TextBox>
                                <br />
                                <asp:Label ID="GenderLabel" runat="server" Text="性别"></asp:Label>
                                <asp:RadioButtonList ID="GenderRadio" runat="server" RepeatDirection="Horizontal" Width="99px" CssClass="form-control">
                                    <asp:ListItem Selected="True">男</asp:ListItem>
                                    <asp:ListItem>女</asp:ListItem>
                                </asp:RadioButtonList>
                                <br />
                                <asp:Label ID="Label1" runat="server" Text="用户类型"></asp:Label>
                                <asp:RadioButtonList ID="TypeRadio" runat="server" RepeatDirection="Horizontal" Width="139px" CssClass="form-control">
                                    <asp:ListItem Selected="True">房主</asp:ListItem>
                                    <asp:ListItem>客户</asp:ListItem>
                                </asp:RadioButtonList>
                                <br />
                                <asp:Button ID="Submit" CssClass="btn btn-md btn-primary" runat="server" Text="注册" OnClick="UserRegister" />
                            </div>
                        </div>
                    </div>
                    <!-- End of Panel-->
                </div>
            </div>
            <!-- End of Row-->

        </div>
        <!-- End of Container-->
    </form>
</body>
</html>
